package com.leoandroid.tool.toolsbox.bean

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update

@Dao
interface NotesInfoDao  {

    @Query("SELECT * FROM notes_table")
    fun getAll():List<NotesDbInfo>

    @Query("SELECT * FROM notes_table WHERE uid == :arg0")
    fun getInfoForKey(mUid:Long):NotesDbInfo


    @Update
    fun updateNotes(notesDbInfo: NotesDbInfo)

    @Insert
    fun insertNotes(notesDbInfo: NotesDbInfo)

    @Delete
    fun deleteNotes(notesDbInfo: NotesDbInfo)

}